<?php
App::uses('AppModel', 'Model');
/**
 * Tag Model
 *
 * @property Livre $Livre
 */
class Tag extends AppModel {

/**
 * Display field
 *
 * @var string
 */
	public $displayField = 'libelle';
	
    public $actsAs = array(
        'Translate' => array(
            'libelle'
        )
    );

	//The Associations below have been created with all possible keys, those that are not needed can be removed

/**
 * hasAndBelongsToMany associations
 *
 * @var array
 */
	public $hasAndBelongsToMany = array(
		'Livre' => array(
			'className' => 'Livre',
			'joinTable' => 'livres_tags',
			'foreignKey' => 'tag_id',
			'associationForeignKey' => 'livre_id',
			'unique' => 'keepExisting',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
		)
	);

}
